#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void test()
{
	Heap hp;
	HeapCreate(&hp);
	HeapPush(&hp, 1);
	HeapPush(&hp, 2);
	HeapPush(&hp, 3);
	HeapPush(&hp, 4);
	HeapPush(&hp, 5);
	HeapPush(&hp, 6);
	printf("%d\n", HeapSize(&hp));
	printf("%d\n", HeapTop(&hp));


	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);

	printf("%d\n", HeapTop(&hp));

	HeapDestory(&hp);
}
int main()
{
	test();
	return 0;
}